/*
 * Created on 3 Apr 2007 by Andrew White
 */

package com.volatileshooter.networking.io;

/*
 * This is a standard response packet used to reply to the sender of
 * a 'heavy' packet for confirmation that the packet was received. The
 * same Packet ID is used as the, but the payload is empty (0 bytes)
 * as we do not need to send the content of the packet back.
 */
public class ResponsePacket extends GamePacket {
    
    /**
     * Constructs a new empty response packet
     * 
     * @param packet The 'heavy' packet that needs responding too
     */
    public ResponsePacket(GamePacket packet) {
        super(packet.clientId, packet.addr);
        this.packetId = packet.packetId;
        this.event = GameChannel.RESPONSE_EVENT;
        payload = new byte[0];        
    }

}
